﻿using UnityEngine;

namespace KaoticSSB
{
	public class DebugHelper : MonoBehaviour 
	{
		void Start () 
		{
		
		}

		void Update () 
		{
			CheckInput();
		}

		private void CheckInput()
		{
			CheckJoystickInput();
		}

		private void CheckJoystickInput()
		{
			for(int i = 0; i <= 15; ++i)
			{
				string joystickButton = "joystick button " + i;
				if(Input.GetKey(joystickButton))
				{
					Debug.Log ("Button (" + i + ") pressed");
				}
			}
		}
	}
}